package com.rbw.controller.req;

import javax.validation.constraints.Pattern;
import javax.validation.groups.Default;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 检查邮箱
 * 
 * @author cuihaidong
 *
 */
public class CheckEmailParam {

	@NotEmpty(groups = Default.class)
	@Pattern(regexp = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$", message = "邮箱格式不正确")
	private String email;

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}
